package com.atguigu.spzx.manager.mapper;

import com.atguigu.spzx.model.entity.base.ProductUnit;
import com.atguigu.spzx.model.entity.product.ProductSpec;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * ClassName: ProductSpec
 * Package:
 * Description:
 *
 * @Author:xiaohei
 * @Create 2024/5/20 13:17
 * Version 1.0
 */
@Mapper
public interface ProductSpecMapper {
    //列表方法
    List<ProductSpec> findByPage();

    //添加方法
    void save(ProductSpec productSpec);

    //修改方法
    void updateById(ProductSpec productSpec);

    //根据id删除  逻辑
    void delete(Long id);

    //加载商品单元数据
    List<ProductUnit> findAll();

}
